/*
	将echarts和zrender加入全局
*/
define(
	[
		'echarts/echarts-all'
	],
	function () {
		require(
			[
				'require',
				'zrender',
				'zrender/tool/color',
				'zrender/tool/math',
				'zrender/tool/util',
				'zrender/tool/vector',
				'zrender/tool/area',
				'zrender/tool/event',
				'zrender/animation/Animation',
				'zrender/animation/Clip',
				'zrender/animation/easing',
				'echarts',
				'echarts/config',
				'echarts/util/mapData/params',
				"echarts/chart/line",
				"echarts/chart/bar",
				"echarts/chart/pie",
				"echarts/chart/map"
			],
			function(require){
				var zrender = require('zrender');
				zrender.tool = {
					color : require('zrender/tool/color'),
					math : require('zrender/tool/math'),
					util : require('zrender/tool/util'),
					vector : require('zrender/tool/vector'),
					area : require('zrender/tool/area'),
					event : require('zrender/tool/event')
				}

				zrender.animation = {
					Animation : require('zrender/animation/Animation'),
					Cip : require('zrender/animation/Clip'),
					easing : require('zrender/animation/easing')
				}
				var echarts = require('echarts');
				echarts.config = require('echarts/config');
				echarts.util = {
					mapData : {
						params : require('echarts/util/mapData/params')
					}
				}

				window['echarts'] = echarts;
				window['zrender'] = zrender;
			}
		);
	}
);